Skip to content

GHA: targeted cleanup — preserve BuildKit ccache across runs#247

Merged
rene merged 1 commit into
eve-kernel-arm64-v6.1.112-genericfrom
fix-arm64-6.1.112
May 11, 2026
Merged

GHA: targeted cleanup — preserve BuildKit ccache across runs#247
rene merged 1 commit into
eve-kernel-arm64-v6.1.112-genericfrom
fix-arm64-6.1.112

Conversation

@rene
Copy link
Copy Markdown
Collaborator

@rene rene commented May 11, 2026

Add make clean target. Cherry picked missing commit 04d9224

This fixes the build/publish workflow.

- Replace nuclear 'docker system prune -af' and 'docker volume prune -af'
  with targeted removal of only the image we just built
- Add clean-gcc/clean-clang Makefile targets that remove specific image
  from both linuxkit cache and docker
- Add BuildKit cache pruning with configurable quota via BUILDX_KEEP_STORAGE_MB
  env var (defaults to 20000 MB) to prevent unbounded disk growth
- Print BuildKit disk usage before pruning for diagnostics
- Use buildctl inside linuxkit-builder container for cache management
- Switch pr-build.yml from pull_request_target to pull_request
- Remove unnecessary Docker Hub login from PR builds

Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
(cherry picked from commit 04d9224)
@rene rene requested review from eriknordmark and rucoder May 11, 2026 19:41
@rene rene merged commit ffedeff into eve-kernel-arm64-v6.1.112-generic May 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants